package cate.game.pvp.eliterace.util;

import cate.game.pvp.eliterace.data.EliteRaceSpec;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.KeyDeserializer;
import org.apache.commons.lang3.ArrayUtils;
import org.springframework.util.StringUtils;

import java.io.IOException;

import static cate.game.pvp.eliterace.util.EliteRaceSpecUtils.deserialize;

public class EliteRaceSpecDeserializer extends KeyDeserializer {

    @Override
    public Object deserializeKey(String key, DeserializationContext context) throws IOException {
        return deserialize(key);
    }
}
